package com.kly.sc.api.application.controller.user.request;

import com.fqgj.common.api.ParamsObject;
import com.kly.sc.api.infras.enums.RestCodeEnum;
import com.kly.sc.api.infras.exception.ApplicationException;
import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

/**
 * 用户照片
 * @author linqu
 */
public class UserImagesRequest extends ParamsObject {

    /**
     * 相册类型: 1 个人照片、2 公开相册、3 私密相册
     * @see com.kly.user.enums.AlbumsType
     */
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public void validate() {

        if (Objects.isNull(this.type)) {
            throw new ApplicationException("The params: type should not be empty");
        }

    }
}
